package com.yan.yjhTest.designPattern.singleton;

/**
 * 单例模式
 * @author yan
 *
 */
public class Emperor {
	private static final Emperor emperor = new Emperor();
	private Emperor() {
		
	}
	
	public static Emperor getInstance() {
		return emperor;
	}
	
	public static void say() {
		System.out.println("emperor say method");
	}
}
